﻿#ifndef CAMERAWORKER_H
#define CAMERAWORKER_H
#include "Common/common.h"

/*
 * 处理相机拍摄 进行相机设置与调整
*/
#include <QObject>
#include <QDebug>
#include <QThread>


class CameraWorker : public QObject
{
    Q_OBJECT
public:
    explicit CameraWorker(QObject *parent = nullptr);
    ~CameraWorker();

public:
	void run();
	void stream();
	void pause();

	bool quit;

    bool m_bIsStreaming;

    int m_nWidth;
    int m_nHeight;

    CameraData m_cData;

    CameraInfo m_camera;


    int status = 0;
private:
    bool pause_status;

signals:
    void sigAlgStart(CameraData m_cImageInfo);
public slots :
    // Frame
    void OnFrameReady(int count);

    void SlotsFrameNums();

    void Initialize();
    void start();
    void stop();


};

#endif // CAMERAWORKER_H
